#include "mydev.h"
#include "StringTool.h"
#include "IrpDispatch.h"
#include "CommonFunction.h"
#include "TheadFunctions.h"
#include "NotifyCallBack.h"
#include "RegEditFunctions.h"



extern "C"
NTSTATUS DriverEntry(PDRIVER_OBJECT pDriver, PUNICODE_STRING pUniStrRegPath) {

	NTSTATUS status = STATUS_SUCCESS;

	KdPrint(("[myddk] DriverEntry"));

	pDriver->DriverUnload = Unload;

	//ProcessRoutine::FindAllCreateProcessNotifyCallBack();

	RegEditFunctions::OpenKey(pUniStrRegPath);


	//if (CreateDev(pDriver)) {
	//	pDriver->MajorFunction[IRP_MJ_DEVICE_CONTROL] = ControlThroughDispatch;

	//	pDriver->MajorFunction[IRP_MJ_CREATE] = IrpCreate;

	//	pDriver->MajorFunction[IRP_MJ_CLOSE] = IrpClose;

	//	pDriver->MajorFunction[IRP_MJ_CLEANUP] = IrpClean;

	//	pDriver->MajorFunction[IRP_MJ_READ] = IrpRead;

	//	pDriver->MajorFunction[IRP_MJ_WRITE] = IrpWrite;
	//}


	return status;
}